<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>商品列表</title>
<hdjs/>
</head>
<body>
	<div class="wrap">
		<div class="menu_list">
			<ul>
				<li><a href="{|U:'add'}">添加商品</a></li>
			</ul>
		</div>
		<div class="title-header">商品列表</div>
		<table class="table2">
			<tr>
				<td class="w30">GID</td>
				<td>商品名称</td>
				<td class="w100">栏目</td>
				<td class="w100">货号</td>
				<td class="w100">价格</td>
				<td class="w100">库存</td>
				<td class="w30" align="center">上架</td>
				<td class="w30" align="center">热销</td>
				<td class="w30" align="center">新品</td>
				<td class="w30" align="center">精品</td>
				<td class="w200">操作</td>
			</tr>
			<list from="$goods" name="$g">
			<tr>
				<td>{$g.gid}</td>
				<td>{$g.goods_name|mb_substr:0,20,'utf-8'}</td>
				<td>{$g.cat_name}</td>
				<td>{$g.goods_sn}</td>
				<td>{$g.goods_price} 元</td>
				<td>{$g.goods_number}</td>
				<td align="center">{$g.is_on_sale_text}</td>
				<td align="center">{$g.is_hot_text}</td>
				<td align="center">{$g.is_new_text}</td>
				<td align="center">{$g.is_best_text}</td>
				<td>
					<a href="{|U:'Product/manage',array('goods_gid'=>$g['gid'])}">货品</a> |
					<a href="{|U:'edit',array('gid'=>$g['gid'])}">编辑</a> |
					<a href="{|U:'recycle',array('gid'=>$g['gid'])}" onclick="return confirm('确定将该商品放入回收站吗？')">删除</a>
				</td>
			</tr>
			</list>
			<tr>
				<td colspan="11"><div class="page1">{$page}</div></td>
			</tr>
		</table>
	</div>
	<css file="__CONTROLLER_VIEW__/css/index.css"/>
	<js file="__CONTROLLER_VIEW__/js/index.js"/>
</body>
</html>